<template>
  <div class="typeList">
    <h3>{{title}}分类</h3>
    <slot :foods="foods" :games="games" :films="films">作用域插槽</slot>
  </div>
</template>

<script>
export default {
    name:'Category',
    props:['title','listData'],
    data() {
      return {
        foods:['火锅','烧烤','小龙虾','牛排'],
        games:['LOL','穿越火线','劲舞团','超级玛丽'],
        films:['《教父》','《你好，李焕英》','《拆弹专家》','《阿凡达》']
      }
    },
}
</script>

<style>
    .typeList{
        width: 200px;
        height: 300px;
        background-color: lightblue;
    }
    .typeList h3{
        text-align: center;
        background-color: lightgreen;
    }
</style>